<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body style="height:2000px;">


</body>
</html>
<script>
    //视图的情况下有点区别
    alert(window.innerHeight);
    alert(document.documentElement.clientHeight);
</script>